import { Global, Module } from '@nestjs/common';
import { DeviceService } from './device.service';
import { DeviceController } from './device.controller';
import { Device } from '@app/db/entities/Device';
import { TypeOrmModule } from '@nestjs/typeorm';
import { PricingFastCharge } from '@app/db/entities/PricingFastCharge';
import { PricingSlowCharge } from '@app/db/entities/PricingSlowCharge';
import { AliIotModule } from 'apps/ali-iot/src/ali-iot.module';
import { PrivateDevice } from '@app/db/entities/PrivateDevice';
import { ChargingStation } from '@app/db/entities/ChargingStation';

@Global()
@Module({
  imports : [TypeOrmModule.forFeature([Device, PricingFastCharge, PricingSlowCharge, PrivateDevice, ChargingStation]), AliIotModule],
  controllers: [DeviceController],
  providers: [DeviceService],
  exports : [DeviceService]
})
export class DeviceModule {}
